package com.foreknow.demo8;

public class B extends A{

    @Override
    public boolean login(String username, String password) {
        if ("tom".equals(username) && "123456".equals(password)){
            return true;
        }
        return false;
    }
}
